package cn.itsource.basic.base.service;

import cn.itsource.basic.page.PageList;
import cn.itsource.basic.page.Pageable;
import cn.itsource.org.domain.Department;

import java.util.List;
import java.util.Map;

public interface IBaseService<T> {

    List<T> findAll();

    T findOne(Long id);

    void saveOrUpdate(T t);

    void insert(T t);

    void update(T t);

    void delete(Long id);

    PageList<T> pageQuery(Pageable pageable);

    void bachDelete(Map<String,String> map);
}
